<?
include_once("config.php");
include_once(INC.'sess.php');
include_once(CLA."lucy_feelings.class.php");


$lucy_feeling = new Lucy_feelings();

echo $lucy_feeling->get_precize();
$i = $lucy_feeling->get();
//$i = 1;

$show_ok = ($i == 1 AND rand(0, 3) == 0) ? 0 : 1;
$show_ok = ($i == 4 OR $i == 5) ? 0 : 1;
$checked_learn = ($_SESSION['no_learning'] == 1) ? "checked" : "";
?>
<html>
	<head>
		<link rel="stylesheet" type="text/css" href="css/main_<?=$i;?>.css" />
	</head>

	<body>
		<div class="komand">
			<form action="translate.php" method="POST">
				<input name="no_learning" type="checkbox" value="1" <?=$checked_learn;?>>
				<input id="komand" name="komand" type="text" autocomplete="off">
				<input type="hidden" name="inSess" value="<?=session_id();?>">
<? 				if($show_ok){ ?>
					<input type="submit" value="OK">
<? 				} ?>
			</form>
		</div>
		<div id="result">
			<?=$_SESSION['index']['result'];?>
		</div>

	</body>

</html>